console.log(localStorage);
localStorage.clear();
localStorage.setItem('userName', 123456);
localStorage.setItem('passWord', 666888);
localStorage.setItem('ver', 3);
console.log(localStorage.getItem("userName"));

var userName = document.getElementsByClassName('usr')[0];
var psd = document.getElementsByClassName('psd')[0];
var ver = document.getElementsByClassName('ver')[0];
var remember = document.getElementsByClassName('remember')[0];
var login = document.getElementsByClassName('login')[0];
login.onclick = function() {
    if (userName.value == localStorage.getItem("userName") && psd.value == localStorage.getItem("passWord")) {
        if (ver.value == localStorage.getItem("ver")) {
            location.href = "https://www.douyin.com/"
        } else {
            alert("验证码错误，请重新输入")
        }
    } else {
        alert("用户名或密码不正确，请重新登录");
    }
}